package com.uniknow.app.ui.fragment;

import roboguice.inject.InjectView;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.uniknow.app.R;
import com.uniknow.app.action.ActionCalog;
import com.uniknow.app.operate.BaseListener;
import com.uniknow.app.widget.MyGifView;

public class Frag_Home extends BaseFragment{
	private ActionCalog actionCalog;
	
	@InjectView(R.id.myGifView1)
	private MyGifView gifView;
	

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.frag_home, null);
		return view;
	}

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		init();
	}
	
	private void init(){
		actionCalog = new ActionCalog(mContext);
		showProgressDialog();
		actionCalog.initData(new BaseListener() {
			
			@Override
			public void onSuccess(Object o) {
				closeProgressDialog();
			}
			
			@Override
			public void onError(String e) {
				closeProgressDialog();
			}
		});
	}
	

}
